package com.erclab.xpresso.formelements
{
	import mx.core.UIComponent;
	import mx.containers.FormItem;
	
	public class Hidden extends FormItem implements FormElement
	{
		protected var value:String;
		protected var destinationColumn:String;
		
		public function Hidden(){
			this.visible = false;
		}

		public function getAttribute(attribute:String):String{
			return this[attribute];			
		}

		public function setAttribute(attribute:String, attributeValue:String):void{
			this[attribute] = attributeValue;
		}
		
		public function getValue():String{
			if (this.value == null){
				return "";
			} else {
				return this.value;
			}
		}

		public function getName():String {
			return this.name;
		}
		
		public function createLabel(attachingElement:UIComponent, label:String):void{
			// Not nessesary	
		}
		
		public function setValue(theValue:String):void{
			this.value = theValue;
		}
		
		public function prepareForInsert():void{
			this.value = "";
		}
		
	
	}
}